import "package:flutter/material.dart";

class UseDrawer extends StatelessWidget {
  const UseDrawer({super.key});

  @override
  Widget build(BuildContext context) {
    return const Drawer(
      // child: Text('左边侧边栏'),
      child: Column(
        children: [
          Row(
            children: [
              Expanded(
                flex: 1,
                child: DrawerHeader(
                  decoration: BoxDecoration(
                    // color: Color(0xffbbffaa),
                    image: DecorationImage(
                        fit: BoxFit.cover,
                        image: AssetImage(
                          "images/1.jpg",
                        )),
                  ),
                  child: Text('我是头部'),
                ),
              )
            ],
          ),
          ListTile(
            leading: CircleAvatar(
              child: Icon(Icons.people),
            ),
            title: Text('个人中心'),
          ),
          Divider(),
          ListTile(
            leading: CircleAvatar(
              child: Icon(Icons.settings),
            ),
            title: Text('系统设置'),
          )
        ],
      ),
    );
  }
}
